package com.jbh.apilibrary

import com.jbh.apilibrary.bean.*
import com.jbh.apilibrary.i.ApiCallBack

interface AppDataMethod {
    /*首页banner*/
    fun bannerTask(callBack: ApiCallBack<List<BannerResultBean>>)
    /*首页列表文章*/
    fun indexArticleTask(page:Int,callBack: ApiCallBack<IndexArticleListResult>)
    /*登录*/
    fun loginTask(username:String, password:String, callBack: ApiCallBack<LoginResultBean>)
    /*注册*/
    fun registerTask(username:String,password:String,rePassword:String,callBack:ApiCallBack<BaseResponse<LoginResultBean>>)
    /*登录*/
    fun loginOutTask(callBack:ApiCallBack<Any>)
    /*获取微信公众号*/
    fun wxarticleTask(callBack:ApiCallBack<List<WxarticleBean>>)
    /*获取单个公众号下的文章*/
    fun wxarticle_ListTask(id:Int,page:Int,callBack:ApiCallBack<WxarticleListBean>)
    /*体系搜索*/
    fun mainTreeTask(callBack: ApiCallBack<List<TreeResult>>)
    fun mainTreeArticleApi(page:Int,id:Int,callBack: ApiCallBack<IndexArticleListResult>)
    /*导航*/
    fun mainNaviTask(callBack: ApiCallBack<List<TreeResult>>)
    /*問答*/
    fun wenDaTask(page:Int,callBack: ApiCallBack<IndexArticleListResult>)
    /*个人积分*/
    fun integralTask(callBack: ApiCallBack<IntegralBean>)
    /*个人积分列表*/
    fun integralListTask(page: Int,callBack: ApiCallBack<CommonListResult<IntegralBean>>)
    /**
     * 消息
     */
    fun newMessageTask(page:Int,callBack: ApiCallBack<MessageListResult>)
    fun readMessageTask(page:Int,callBack: ApiCallBack<MessageListResult>)
    fun messageCountTask(callBack: ApiCallBack<Any>)
}